/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jp.co.irep.tech.juten.bean.view;

import java.io.Serializable;
import java.util.List;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import javax.servlet.http.Part;

import javax.validation.constraints.NotNull;
import jp.co.irep.tech.juten.hibernate.pojos.Aken;
import org.hibernate.validator.constraints.NotEmpty;
import org.maru.m4hv.extensions.constraints.CharLength;

/**
 *
 * @author toan_nguyen
 */

@Named
@SessionScoped
public class AkenViewBean implements Serializable{
    
    
    @NotNull(message = "{validation.AkenBean.akenId.NotNull.message}")
    private Short akenId;
    @NotEmpty(message = "{validation.AkenBean.akenName.NotNull.message}")
    @CharLength(min = 1, max = 10, message = "{validation.AkenBean.akenName.Length.message}")
    private String akenName;
    private List<Aken> akenList;
  

    public Short getAkenId() {
        return akenId;
    }

    public void setAkenId(Short akenId) {
        this.akenId = akenId;
    }

    public String getAkenName() {
        return akenName;
    }

    public void setAkenName(String akenName) {
        this.akenName = akenName;
    }

    public List<Aken> getAkenList() {
        return akenList;
    }

    public void setAkenList(List<Aken> akenList) {
        this.akenList = akenList;
    }
    
}
